package ctr.layer;

import java.util.ArrayList;

import model.layer.Recipe;
import android.app.Application;

public class FoodAndAllergy extends Application {
	
	
	private String name;
	private ArrayList<String> allergies = new ArrayList<String>();
	private ArrayList<Recipe> recipes = new ArrayList<Recipe>();
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public ArrayList<String> getAllergies() {
		return allergies;
	}
	public void setAllergies(ArrayList<String> _allergies) {
		allergies = _allergies;
	}
	public ArrayList<Recipe> getRecipes() {
		return recipes;
	}
	public void setRecipes(ArrayList<Recipe> _recipes) {
		recipes = _recipes;
	}
	public Recipe getLatestRecipe()
	{
		return recipes.get(recipes.size()-1);
	}
	public void addRecipe(Recipe rep)
	{
		recipes.add(rep);
	}
	
	
	

}
